package pm.issue.bean;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class IssueBean {

	
	private int issueId;
	private String issueName;
	private String issueCon;
	private String issueCreator;
	private Timestamp createTime;
	private Timestamp updateTime;
	private String issueFile;
	private String issueState;
	private int projectId;
	private String issueType;
	
	
	public Timestamp getUpdateTimestamp(){
		return updateTime;
	}
	public Timestamp getCreateTimestamp(){
		return createTime;
	}
	
	public String getIssueType() {
		return issueType;
	}
	public void setIssueType(String issueType) {
		this.issueType = issueType;
	}
	public int getIssueId() {
		return issueId;
	}
	public void setIssueId(int issueId) {
		this.issueId = issueId;
	}
	public String getIssueName() {
		return issueName;
	}
	public void setIssueName(String issueName) {
		this.issueName = issueName;
	}
	public String getIssueCon() {
		return issueCon;
	}
	public void setIssueCon(String issueCon) {
		this.issueCon = issueCon;
	}
	public String getIssueCreator() {
		return issueCreator;
	}
	public void setIssueCreator(String issueCreator) {
		this.issueCreator = issueCreator;
	}
	public String getCreateTime() {
		 Date newtime = createTime;
		 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		 String dateString = format.format(newtime);	
		 return dateString;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public String getUpdateTime() {
		 Date newtime = updateTime;
		 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		 String dateString = format.format(newtime);	
		 return dateString;
	}
	
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public String getIssueFile() {
		return issueFile;
	}
	public void setIssueFile(String issueFile) {
		this.issueFile = issueFile;
	}
	public String getIssueState() {
		return issueState;
	}
	public void setIssueState(String issueState) {
		this.issueState = issueState;
	}
	public int getProjectId() {
		return projectId;
	}
	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}

	
}
